let UserDao = require('../dao/userDao');
let FriendDao = require('../dao/friendDao');
exports.list = function (params) {
    params.options = {limit:99999};
    return new Promise(function (resolve,reject) {
        UserDao.queryUserDetail(masterPool,params)
            .then(function (result) {
                return FriendDao.selectFriend(masterPool,{params:params,selfInfo:result[0]})
            })
            .then(resolve,reject)
    });
};
